import 'package:my_flutter_demo/exports.dart';

class ButtonDemoPage extends StatelessWidget{
  const ButtonDemoPage({Key?key}):super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('ButtonDemoPage'),
      ),
      body: Center(
        child: Column(
          children: [
            ElevatedButton(onPressed: (){
              print('点击按钮');
              }, onLongPress: (){
              print('长按');
            },
                child:
                Text('ElevatedButton')
            ),
            TextButton(
              style: TextButton.styleFrom(
                backgroundColor: Colors.blue,
              ),
                onPressed: (){
              print('点击按钮');
            }, 
                child: 
                Text('TextButton',style: AppTextStyles.button,)
            ),
            OutlinedButton(onPressed: (){}, child: Text('OutlinedButton')),
            IconButton(onPressed: (){}, icon: Icon(Icons.ac_unit)),
  
      
          ],
        ),
      ),
    );
  }

}
